# 多态

class Person:
    def eat(self):
        print('人 吃五谷杂粮')


class Cat:
    def eat(self):
        print('猫 吃鱼')


class Dog:
    def eat(self):
        print('狗吃骨头')


def fun(obj):
    obj.eat()


per = Person()
cat = Cat()
dog = Dog()

fun(per)
fun(cat)
fun(dog)
